import Vue from 'vue'
import VueRouter from 'vue-router'
import Search from '../components/Search.vue'
import AboutMe from '../components/AboutMe.vue'
import Main1 from '../components/Main1.vue'
import SystemSettings from '../components/SystemSettings.vue'
Vue.use(VueRouter)

const routes = [
  {
path:'/',
redirect: '/Main1'
  },
  {
    path: '/Main1',
    name: 'Main1',
component:Main1
  
  },
  {
    path: '/Search',
    name: 'Search',
component:Search
  
  },
  {
    path: '/AboutMe',
    name: 'AbuoutMe',
component:AboutMe
  
  },
  {
    path: '/SystemSettings',
    name: 'SystemSettings',
component:SystemSettings
  
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
